package com.powernode.mybatis.pojo;

/**
 * author 金宇廷的星空
 * version 1.0
 * date  2023/4/9 17:31
 * poject Mybatis
 */


/*
* 封装汽车相关信息的pojo类
* */

public class Car {
    //使用包装类，可以防止null的问题
    private Long id;
    private String  carNum;
    private String  bread;
    private String  guidePrice;
    private String  produceTime;
    private String  carType;

    public Car() {
    }

    public Car(Long id, String carNum, String bread, String guidePrice, String produceTime, String carType) {
        this.id = id;
        this.carNum = carNum;
        this.bread = bread;
        this.guidePrice = guidePrice;
        this.produceTime = produceTime;
        this.carType = carType;
    }

    @Override
    public String toString() {
        return "Car{" +
                "id=" + id +
                ", carNum='" + carNum + '\'' +
                ", bread='" + bread + '\'' +
                ", guidePrice='" + guidePrice + '\'' +
                ", produceTime='" + produceTime + '\'' +
                ", carType='" + carType + '\'' +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    public String getBread() {
        return bread;
    }

    public void setBread(String bread) {
        this.bread = bread;
    }

    public String getGuidePrice() {
        return guidePrice;
    }

    public void setGuidePrice(String guidePrice) {
        this.guidePrice = guidePrice;
    }

    public String getProduceTime() {
        return produceTime;
    }

    public void setProduceTime(String produceTime) {
        this.produceTime = produceTime;
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }
}
